#include "Timer.h"
#include <SDL/SDL.h>

Timer :: Timer()
{
	startTicks = 0;
	started = false;
}

void Timer :: start()
{
	started = true;

	startTicks = SDL_GetTicks();
}

int Timer :: getTicks()
{
	return SDL_GetTicks() - startTicks;
}

bool Timer :: isStarted()
{
	return started;
}